// ++++++++++++++++++++++++++++++++++++++++
// 《零基础Go语言算法实战》源码
// ++++++++++++++++++++++++++++++++++++++++
// Author:廖显东（ShirDon）
// Blog:https://www.shirdon.com/
// Gitee:https://gitee.com/shirdonl/goAlgorithms.git
// Buy link :https://item.jd.com/14101229.html
// ++++++++++++++++++++++++++++++++++++++++

package main

import (
	"fmt"
)

type Animal interface {
	Eat()
}

type Cat struct{}

func (cat *Cat) Eat() {

}

func live() Animal {
	var cat *Cat
	return cat
}

func main() {
	if live() == nil {
		fmt.Println("NIL")
	} else {
		fmt.Println("NON NIL")
	}
}

//$ go run interview1-41.go
//NON NIL
